package com.demo.HashMap_;

import java.util.Collection;
import java.util.HashMap;
import java.util.Set;

/**
 * @author gy
 * @date 2022/4/9
 */
public class HashMap01 {
    public static void main(String[] args) {
        HashMap<Object, Object> objectObjectHashMap = new HashMap<>();
        objectObjectHashMap.put("a",1);
        objectObjectHashMap.put("b",2);
        objectObjectHashMap.put("c",3);
        System.out.println(objectObjectHashMap);
        System.out.println(objectObjectHashMap.entrySet());
        Set<Object> objects = objectObjectHashMap.keySet();
        System.out.println("keySet()"+objects);
        Collection<Object> values = objectObjectHashMap.values();
        System.out.println("values"+ values);
    }
}
